package cn.wolfcode.luowowo.article.query;

import lombok.Getter;

import java.util.HashMap;

/**
 * 攻略天数范围查询
 */
@Getter
public class StrategyCondition {

    public static final HashMap<Integer,StrategyCondition> dayMap = new HashMap<>();

    static {
        //出行天数
        dayMap.put(-1, new StrategyCondition(0, Integer.MAX_VALUE));
        dayMap.put(1, new StrategyCondition(2, 3));
        dayMap.put(2, new StrategyCondition(4, 5));
        dayMap.put(3, new StrategyCondition(6, 9));
        dayMap.put(4, new StrategyCondition(10, Integer.MAX_VALUE));
    }


    private int min;
    private int max;
    public StrategyCondition(int min,int max){
        this.min = min;
        this.max = max;
    }
}
